home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Code / Chapter05 / cni.S3D next >
Text File  |  2000-09-05  |  3KB  |  146 lines

  1. Background {
  2.     color 0 0 0
  3. }
  4. DEF world-TIMER TimeSensor {
  5.     loop TRUE
  6.     cycleInterval 3.333
  7. }
  8. DEF Box01 Transform {
  9.     hidden true
  10.     translation 4.268 0 13.5
  11.     children [
  12.         Shape {
  13.             appearance [
  14.                 MultiAppearance {
  15.                     material Material {
  16.                         diffuseColor 0.8392 0.8941 0.6
  17.                     }
  18.                 }
  19.             ]
  20.             geometry MultiMesh {
  21.                 coord DEF ANCHOR Coordinate {
  22.                     point [
  23.                         -22.42 0 43.72 22.42 0 43.72 -22.42 0 -43.72 22.42 0 -43.72 -22.42 43.02 43.72 22.42 43.02 43.72
  24.                         -22.42 43.02 -43.72 22.42 43.02 -43.72
  25.                     ]
  26.                 }
  27.                 coordIndex [
  28.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  29.                     2 0 4 -1 4 6 2 -1
  30.                 ]
  31.                 smoothingIndex [
  32.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  33.                 ]
  34.             }
  35.         }
  36.     ]
  37. }
  38. DEF Box02 Transform {
  39.     hidden true
  40.     translation -118.3 0 11.62
  41.     children [
  42.         Shape {
  43.             appearance [
  44.                 MultiAppearance {
  45.                     material Material {
  46.                         diffuseColor 0.8392 0.8941 0.6
  47.                     }
  48.                 }
  49.             ]
  50.             geometry MultiMesh {
  51.                 coord DEF DOWN Coordinate {
  52.                     point [
  53.                         -22.42 0 43.72 22.42 0 43.72 -22.42 -74.19 -43.72 22.42 -74.19 -43.72 -22.42 43.02 43.72
  54.                         22.42 43.02 43.72 -22.42 43.02 -43.72 22.42 43.02 -43.72
  55.                     ]
  56.                 }
  57.                 coordIndex [
  58.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  59.                     2 0 4 -1 4 6 2 -1
  60.                 ]
  61.                 smoothingIndex [
  62.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  63.                 ]
  64.  
  65.             }
  66.         }
  67.     ]
  68. }
  69. DEF Box03 Transform {
  70.     hidden true
  71.     translation -240.9 0 9.739
  72.     children [
  73.         Shape {
  74.             appearance [
  75.                 MultiAppearance {
  76.                     material Material {
  77.                         diffuseColor 0.8392 0.8941 0.6
  78.                     }
  79.                 }
  80.             ]
  81.             geometry MultiMesh {
  82.                 coord DEF UP Coordinate {
  83.                     point [
  84.                         -22.42 0 43.72 22.42 0 43.72 -22.42 0 -43.72 22.42 0 -43.72 -22.42 43.02 43.72 22.42 43.02 43.72
  85.                         -22.42 109.4 -43.72 22.42 109.4 -43.72
  86.                     ]
  87.                 }
  88.                 coordIndex [
  89.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  90.                     2 0 4 -1 4 6 2 -1
  91.                 ]
  92.                 smoothingIndex [
  93.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  94.                 ]
  95.  
  96.             }
  97.         }
  98.     ]
  99. }
  100.  
  101. DEF Box04 Transform {
  102.     translation 4.268 0 13.5
  103.     children [
  104.         Shape {
  105.             appearance [
  106.                 MultiAppearance {
  107.                     material Material {
  108.                         diffuseColor 0.8392 0.8941 0.6
  109.                     }
  110.                 }
  111.             ]
  112.             geometry MultiMesh {
  113.                 coord DEF MESH Coordinate {
  114.                     point [
  115.                         -22.42 0 43.72 22.42 0 43.72 -22.42 0 -43.72 22.42 0 -43.72 -22.42 43.02 43.72 22.42 43.02 43.72
  116.                         -22.42 43.02 -43.72 22.42 43.02 -43.72
  117.                     ]
  118.                 }
  119.                 coordIndex [
  120.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  121.                     2 0 4 -1 4 6 2 -1
  122.                 ]
  123.                 smoothingIndex [
  124.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  125.                 ]
  126.  
  127.             }
  128.         }
  129.     ]
  130. }
  131.  
  132. DEF CNI CoordinateNodeInterpolator {
  133.     key [ 0.0 .25 .5 .75 1.0]
  134.     keyValue [
  135.         USE ANCHOR
  136.         USE UP
  137.         USE ANCHOR
  138.         USE ANCHOR
  139.         USE DOWN
  140.     ]
  141. }
  142.  
  143.  
  144. ROUTE world-TIMER.fraction TO CNI.fraction
  145. ROUTE CNI.value TO MESH.point
  146.